<?php defined('IN_IA') or exit('Access Denied');?><!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<meta name="viewport"  content="width=device-width,user-scalable=no">
	<title><?php  echo $setting[0]['title'];?></title>
</head>
<link href="<?php  echo MODULE_URL;?>/template/mobile/css/style.css?f=esw" rel="stylesheet" type="text/css" />
<body>
	<div id="content">
			<div id="slideBox" class="slideBox">
				<div class="bd">
					<ul>
						<?php  if(is_array($ppt_list)) { foreach($ppt_list as $row) { ?>
						<li>
							<a class="pic" href="<?php  echo $row['url'];?>"><img src="<?php  echo $_W['attachurl'];?><?php  echo $row['picture'];?>" /></a>
							<a class="tit" href="<?php  echo $row['url'];?>"><?php  echo $row['pic_intro'];?></a>
						</li>
						<?php  } } ?>
					</ul>
				</div>
				<div class="hd"><ul></ul></div>
			</div>
			<div class="searchForm">
				<h3><?php  echo $setting[0]['title'];?></h3>
				<form method="post" action="<?php  echo $this->createMobileUrl('search')?>">
				<p>所属省份</p>
				<div class="styled-select">
					<select id="s_province" name="province"></select>
				</div>
				<p>所属城市</p>
				<div class="styled-select">
    				<select id="s_city" name="city" ></select>
    			</div>
    			<input type="submit" value="查询经销商" />
				</form>
			</div>
			<div class="result_list">
				<h3>查询结果</h3>
				<ul>
				<?php  if(!empty($result)) { ?>
				<?php  if(is_array($result)) { foreach($result as $item) { ?>
					<li>
						<?php  echo $item['company'];?>
						<p>地址：<?php  echo $item['province'];?><?php  echo $item['city'];?><?php  echo $item['address'];?></p>
						<hr>
					</li>	
				<?php  } } ?>
				<?php  }else{ ?>
					无数据
				<?php  }?>
				</ul>
			</div>
	</div>
	<div class="buttom_pic">
		<img src="<?php  echo $_W['attachurl'];?><?php  echo $setting[0]['page_cover'];?>" />	
	</div>
	<div class="footer"><?php  echo $setting[0]['copyright'];?></div>
	<script src="<?php  echo MODULE_URL;?>/template/mobile/js/TouchSlide.1.1.js"></script>
	<script src="<?php  echo MODULE_URL;?>/template/mobile/js/area.js"></script>
	<script type="text/javascript">_init_area();</script>
	<script type="text/javascript">
		function Gid($){
			return document.getElementById($);
		}
		var showArea = function(){
			Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" + 	
			Gid('s_city').value + " - 县/区" + 
			Gid('s_county').value + "</h3>"
		}
</script>
	<script type="text/javascript">
		TouchSlide({ 
			slideCell:"#slideBox",
			titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
			mainCell:".bd ul", 
			effect:"leftLoop", 
			autoPage:true,//自动分页
			autoPlay:true //自动播放
		});
	</script>
</body>
</html>
